/*******************************************************************************
 *                                    ZLG
 *                         ----------------------------
 *                         innovating embedded platform
 *
 * Copyright (c) 2001-present Guangzhou ZHIYUAN Electronics Co., Ltd.
 * All rights reserved.
 *
 * Contact information:
 * web site:    https://www.zlg.cn
 *******************************************************************************/
#ifndef __HPM6E00_PCFG_H
#define __HPM6E00_PCFG_H

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus*/
#include "common/hpm_errno.h"
#include "common/hpm_common.h"
#include "core/include/hpm6e00_regs_pcfg.h"
#include <stdint.h>

#define PCFG_SOC_DCDC_MIN_VOLTAGE_IN_MV (600U)
#define PCFG_SOC_DCDC_MAX_VOLTAGE_IN_MV (1375U)

/**
 * \brief DCDC 电压设置
 *
 * \param[in] mv 要设置的电压值
 *
 * \retval 成功返回 0
 */
int pcfg_dcdc_voltage_set(uint16_t mv);
#ifdef __cplusplus
}
#endif  /* __cplusplus  */

#endif
